﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="sp.netWebFroms._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<asp:Button runat="server" ID="btnAdd" text="添加" OnClick="btnAdd_Click" />
<asp:GridView runat="server" ID="gv1" OnRowCancelingEdit="gv1_RowCancelingEdit" OnRowEditing="gv1_RowEditing" OnRowDeleting="gv1_RowDeleting" OnRowUpdating="gv1_RowUpdating">
<Columns>
    <asp:BoundField  DataField="id" HeaderText="ID" ReadOnly="true" />
    <asp:BoundField  DataField="Title" HeaderText="标题" />
    <asp:BoundField  DataField="Content" HeaderText="内容" />
    <asp:BoundField  DataField="Author" HeaderText="作者" />
    <asp:BoundField  DataField="Remarks" HeaderText="备注"/>
</Columns>
</asp:GridView>

</asp:Content>
